//
// Created by Administrator on 2023-12-07.
//

#ifndef A1_MYTCPSERVER_H
#define A1_MYTCPSERVER_H

#include "QTcpServer"
#include "QTcpSocket"




class MyTcpServer {

private:

    const int port=12345;
    QTcpServer*server;
    QMap<QString, QTcpSocket *>  clients;
public:

    explicit MyTcpServer(QObject* parent);
    ~MyTcpServer();
    void stopServer();
    void connectServer();
    void massSend(std::string message);
public:
    QObject* _mainWindow;

};


#endif //A1_MYTCPSERVER_H
